<div class="box-body">
    <form class="layui-form" action="{:url('save')}" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">属性名称</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="属性名称" name="attr_name" {if isset($attr)}value="{$attr.attr_name}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">属性编号</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="属性编号" name="code" {if isset($attr)}readonly value="{$attr.code}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="备注" name="remark" {if isset($attr)}value="{$attr.remark}"{/if} class="layui-input" />
            </div>
        </div>
        {if isset($attr)}
        <input type="hidden" name="attr_id" value="{$attr.attr_id}"/>
        {/if}
    </form>
</div>